//
//  BaseView.m
//  Product_NEWS
//
//  Created by dllo on 16/1/7.
//  Copyright © 2016年 FCH. All rights reserved.
//

#import "BaseView.h"

@implementation BaseView




-(instancetype)initWithFrame:(CGRect)frame
{
    
    self  = [super initWithFrame:frame];
    if (self) {
        
//       
//        if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"night"] isEqualToString:@"yes"]) {
//            self.backgroundColor =[UIColor blackColor];
//        }else{
//            self.backgroundColor =[UIColor blackColor];
//        }
//        //通知
//        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(changeColor:) name:@"color" object:nil];
    }
    
    
    
    return self;
    
    
}


//- (void)changeColor:(NSNotification *)notification{
//    NSLog(@"--------");
//    
//    if ([[[NSUserDefaults standardUserDefaults] objectForKey:@"night"] isEqualToString:@"yes"]) {
//        self.backgroundColor = [UIColor blackColor];
//    }else{
//        self.backgroundColor =[UIColor blackColor];
//    }
//}

@end
